package com.ceprei.common.result;

/**
 * 返回的代码号
 * @author zhou minghao
 * @date 2024/11/27
 * @description
 */
public enum ResultCode {
    /* 成功 */
    SUCCESS(200,"成功"),

    /* 默认失败 */
    ERROR(500,"失败"),
    ;

    private Integer code;

    private String msg;

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
